import java.util.Scanner;

public class SwitchDemo09 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个分数");
        float grade = scanner.nextFloat();
//        if (grade >= 0 && grade <= 100) {
//            if (grade < 60) {
//                System.out.println("不及格");
//            } else if (grade <= 80) {
//                System.out.println("良好");
//            } else if (grade <= 90) {
//                System.out.println("优秀");
//            } else if (grade <= 100) {
//                System.out.println("完美");
//            }
//        } else {
//            System.out.println("非法分数");
//        }

        if (grade >= 0 && grade <= 100) {
            switch ((int) (grade / 10)) {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    System.out.println("不及格");
                    break;
                case 6:
                case 7:
                    System.out.println("良好");
                    break;
                case 8:
                    System.out.println("优秀");
                    break;
                case 9:
                case 10:
                    System.out.println("完美");
                    break;
            }
        } else {
            System.out.println("非法输入");
        }


    }

}
